﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using RIA.ServicesLibrary.Web.Models.Shared.CustomValidationRules;


namespace RIA.ServicesLibrary.Web.Models
{
  

   // The MetadataTypeAttribute identifies CustomerMetadata as the class
   // that carries additional metadata for the Customer class.
  
   [MetadataTypeAttribute ( typeof ( Product.ProductMetadata ) )]
   public partial class Product
   {

       // This class allows you to attach custom attributes to properties
       // of the Customer class.
       //
       // For example, the following marks the Xyz property as a
       // required property and specifies the format for valid values:
       //    [Required]
       //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
       //    [StringLength(32)]
       //    public string Xyz { get; set; }
       [SellDatesValidation]
       internal sealed class ProductMetadata
       {

           // Metadata classes are not meant to be instantiated.
           private ProductMetadata ()
           {

           }

           
       }
   }
   

}
